/*
 * RestituicaoVO.java
 *
 * Created on 2 de Junho de 2007, 23:56
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.valueObjects;

import java.io.IOException;

/**
 *
 * @author $Leandro$
 */
public class RestituicaoVO extends JMESerializable{
    
    public String data = "";
    
    public String valor = "";
    
    public boolean exists = false;
    
    public boolean confirmado = false;
    
    /** Creates a new instance of RestituicaoVO */
    public RestituicaoVO() {        
    }

    public byte[] serialize() throws IOException, InterruptedException {
        return null;
    }

    public void unserialize(byte[] data) throws IOException, InterruptedException {
        this.initUnSerialize(data);
        
        exists = dataIn.available() > 0;
        
        if(dataIn.available() > 0) {
            this.confirmado = dataIn.readBoolean();
            this.data = dataIn.readUTF();
            this.valor = Float.toString(dataIn.readFloat());
        }
    }    
}
